<template>
    <select  :name="inputDefine.name" @change="dataChange($event)">
        <option value="">--请选择--</option>
        <option v-for="option in inputDefine.options" :value="option.value">
            {{ option.displayName }}
        </option>
    </select>
</template>

<script>
    export default{
        data(){
            return{}
        },
        props:{
          inputDefine:{
            type:Object,
            required: true
          },
          elementData:{
            required: true
          }
        },
         methods:{
             "dataChange":function(event){
                 var dataInfo={"newValue":event.target.value}
                 this.$emit('dataChange',this.inputDefine,dataInfo);
             }
        }
    }
</script>
